{{template "layout" .}}
<link href="/static/css/base.css" rel="stylesheet" type="text/css" />
<link href="/static/css/style.css" rel="stylesheet" type="text/css" />
{{ define "content" }}
<!--banner开始-->
<div class="banner-ad01"></div>
<!--banner结束-->
<div class="layout">
    <div class="wrapper">
        <div class="breadcrumb"> <a href="/" class="check_more">首页</a> &gt; <a href="#" class="check_more">{{.cateInfo.Title}}</a></div>
    </div>
</div>
<div class="c-index-wrap">
    <div class="wrapper">
        <div class="left-main">
            <div class="i-video-bd">
                <ul>
                    {{range $k,$v := .list}}
                    <li>
                        <video src="{{.VideoUrl}}" width="350" height="200" controls poster="{{.Thumbnail}}">您的浏览器版本过低或暂不支持HTML5的VIDEO的元素</video>
                    </li>
                    {{end}}
                    <div class="clear"></div>
                </ul>
                <div class="page">
                {{if eq $.page.currpage 1}}
                {{else}}
                    <a class="noprev" href="/news/list?page=1">首页</a>
                    <a class="noprev" href="/news/list?page={{.page.firstpage}}">上一页</a>
                {{end}}
                {{range $index,$page := .page.pages}}
                {{if eq $.page.currpage $page }}
                    <span class="now">{{$page}}</span>
                {{else}}
                    <a class="num" href="/news/list?page={{$page}}">{{$page}}</a>
                {{end}}
                {{end}}
                {{if eq $.page.currpage $.page.totalpages}}
                {{else}}
                    <a class="next" href="/news/list?page={{.page.lastpage}}">下一页</a>
                    <a class="next" href="/news/list?page={{.page.totalpages}}">尾页</a>
                {{end}}
                </div>
            </div>
        </div>
        {{template "right" .}}
    </div>
</div>
{{ end }}